﻿using System;
using System.Windows.Forms;
using NDK.Module.Model;

namespace NDK.NDKControl
{

    public partial class AquireModeControl : UserControl
    {
        public string SingleText { get; set; }
        public string ContinuesText { get; set; }
        public string LocalImageText { get; set; }
        public AquireModeControl()
        {
            InitializeComponent();
        }
        public delegate void ItemClickHandle(object sender, GUIEventArgs e);
        public event ItemClickHandle ItemClicked;

        private void lbl_SingleAquire_Click(object sender, EventArgs e)
        {
            GUIEventArgs ee = new GUIEventArgs(0);
            lbl_SingleAquire.Text = SingleText;
            if (ItemClicked != null)
            {
                ItemClicked(sender, ee);
            }
        }

        private void lbl_ContinuesAquire_Click(object sender, EventArgs e)
        {
            GUIEventArgs ee = new GUIEventArgs(1);
            lbl_ContinuesAquire.Text = ContinuesText;
            if (ItemClicked != null)
            {
                ItemClicked(sender, ee);
            }
        }
        private void lbl_LocalImage_Click(object sender, EventArgs e)
        {
            GUIEventArgs ee = new GUIEventArgs(2);
            lbl_LocalImage.Text = ContinuesText;
            if (ItemClicked != null)
            {
                ItemClicked(sender, ee);
            }
        }

    }
}
